package com.pinecone.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.pinecone.dao.CusOrgInfoDao;
import com.pinecone.entity.CusOrgInfoEntity;
import com.pinecone.service.CusOrgInfoService;



@Service("cusOrgInfoService")
public class CusOrgInfoServiceImpl implements CusOrgInfoService {
	@Autowired
	private CusOrgInfoDao cusOrgInfoDao;
	
	@Override
	public CusOrgInfoEntity queryObject(Integer orgId){
		return cusOrgInfoDao.queryObject(orgId);
	}
	
	@Override
	public List<CusOrgInfoEntity> queryList(Map<String, Object> map){
		return cusOrgInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cusOrgInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(CusOrgInfoEntity cusOrgInfo){
		cusOrgInfoDao.save(cusOrgInfo);
	}
	
	@Override
	public void update(CusOrgInfoEntity cusOrgInfo){
		cusOrgInfoDao.update(cusOrgInfo);
	}
	
	@Override
	public void delete(Integer orgId){
		cusOrgInfoDao.delete(orgId);
	}
	
	@Override
	public void deleteBatch(Integer[] orgIds){
		cusOrgInfoDao.deleteBatch(orgIds);
	}
	
}
